//
//  ZCSingerAblumContentTableViewCell.m
//  VoiceMusic
//
//  Created by dllo on 15/10/26.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import "ZCSingerAblumContentTableViewCell.h"
#import "ZCBaseLabel.h"
#import "ZCBaseView.h"
#import <Masonry.h>
@implementation ZCSingerAblumContentTableViewCell
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    [self.backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
    
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.equalTo(self.backView).offset(5);
        make.right.equalTo(self.backView.mas_right).offset(5);
        make.height.equalTo(@40);
    }];
    [self.titleLabel setFont:[UIFont boldSystemFontOfSize:24]];
    
    [self.detailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.titleLabel.mas_bottom).offset(2);
        make.left.equalTo(self.backView).offset(5);
        make.right.equalTo(self.backView.mas_right).offset(5);
        make.height.equalTo(@30);
    }];
    [self.detailLabel setFont:[UIFont systemFontOfSize:15]];
    self.detailLabel.alpha = 0.6;
}
//    [self.firstLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.equalTo(self.backView).offset(50);
//        
//    }];
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)getInfo:(ZCSingerContentModel *)model
{
    [self.titleLabel setText:model.name];

    [self.detailLabel setText:model.alias];
}
@end
